package cn.zhz.service.role;

import cn.zhz.dao.role.RoleMapper;
import cn.zhz.pojo.Role;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService{

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> getRoleList() {
        return  roleMapper.getRoleList();
    }

    @Override
    public List<Role> getRoleList1(String roleName) {
        return  roleMapper.getRoleList1(roleName);
    }
}
